{% extends 'base.html' %}

{% block contents %}

<h2>Registered users:</h2>
<P/>
<table class="movie_list">
    <tr class="yellow">
        <td>User ( click to see this users movies)</td>
        <td>Email</td>
        <td>Homepage</td>
        <td>Access</td>
    </tr>
{% for dude in dudes %}
<tr>
    <td class="title_cell"><a href="/by_dude/{{dude.key}}/">{{dude.nickname}}</a></td>
    <td><a href="mailto:{{dude.email}}">{{dude.email}}</a></td>
    <td><a href="{{dude.homepage}}">{{dude.homepage}}</a></td>
    {% if dude.has_access %}
       <td>Yes,&nbsp;<a href="/revoke_access/{{dude.key}}">revoke access</a>.</td>
       {% else %}
       <td>No,&nbsp;<a href="/grant_access/{{dude.key}}">grant access</a>.</td>
     {% endif %}
</tr>
{% endfor %}
</table>

{% endblock %}